# This file demonstrates how to compile the squirsamp project
# on Linux. Just run "make" to compile it.

GPP=g++
GCC=gcc
OUTFILE="../../samp03/plugins/squirsamp.so"

COMPILE_FLAGS=-c -O3 -w -DLINUX -I../SDK/amx/ -I../SDK/ -I../SDK/SQUIRREL3/include/ -I../SDK/SQUIRREL3/sqstdlib/ -I../SDK/SQUIRREL3/squirrel/ -I./

all:
	$(GCC) $(COMPILE_FLAGS) ../SDK/amx/*.c 
	$(GPP) $(COMPILE_FLAGS) ../SDK/*.cpp
	$(GPP) $(COMPILE_FLAGS) ../SDK/SQUIRREL3/squirrel/*.cpp
	$(GPP) $(COMPILE_FLAGS) ../SDK/SQUIRREL3/sqstdlib/*.cpp
	$(GPP) $(COMPILE_FLAGS) *.cpp
	$(GPP) -O2 -fshort-wchar -shared -o $(OUTFILE) *.o

clean:
	rm -rf *.o
